package com.binarysoft.service.type;

import java.util.Collection;
import java.util.Map;

public interface TypeDAO {
	String DSB_SERVER_POOL_NAME = "core.server.dsb";

	Map<String, Type> loadAllTypes() throws Exception;

	void addType(String typeID, String typeName, String typeDesc, String parentTypeID) throws Exception;

	void deleteType(String typeID) throws Exception;

	void deleteType(Collection<String> typeIDs) throws Exception;

	void updateType(String typeID, String typeName, String typeDesc, String parentTypeID) throws Exception;
}